package com.cyp.blogsystem.service;

import com.cyp.blogsystem.model.request.LoginRequest;
import com.cyp.blogsystem.model.request.RegisterRequest;
import com.cyp.blogsystem.model.request.UpdateProfileRequest;
import com.cyp.blogsystem.model.vo.LoginVO;
import com.cyp.blogsystem.pojo.User;

public interface UserService {
    /**
     * 用户注册
     */
    User register(RegisterRequest request);

    /**
     * 用户登录
     */
    LoginVO login(LoginRequest request);

    /**
     * 获取用户信息
     */
    User getUserById(Long id);

    /**
     * 更新用户信息
     */
    void updateProfile(Long userId, UpdateProfileRequest request);
}